using RugbyClubWpf.Helpers;
using System.Windows;
using System.Windows.Input;

namespace RugbyClubWpf.Views
{
    public partial class AddMatchDialog : Window
    {
        public AddMatchDialog()
        {
            InitializeComponent();
            DataContext = this;
            AddCommand = new RelayCommand(AddMatch);
        }

        public ICommand AddCommand { get; }

        private void AddMatch(object parameter)
        {
            DialogResult = true;
            Close();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
            Close();
        }
    }
}
